package com.foxit.setting;
// Filename: Slist.java
import java.io.*;
import java.net.*;
import java.lang.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class Slist extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
                    throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        request.setCharacterEncoding("UTF-8");
        PrintWriter out = response.getWriter();
        String m = request.getParameter("modify");
        out.println("<HTML><head><style>table,th,td { border:1px solid black;border-collapse:collapse; } </style></head><body> <table border='1' style='width:300px'>");
        out.println("<tr><th colspan=2>FOXIT Setting Tool(<font color=red>"+m+"</font>)</th></tr>");
        out.println("<tr><td colspan=2><a href='./Sethome?modify="+m+"'>回setting tool首頁</a></td></tr>");
        out.println("<tr><td>Top廣告</td><td><a href='./SetTop?modify="+m+"'>Top廣告</a><t/td></tr>");
        out.println("<tr><td>廣告ID</td><td><a href='./SetAdrule?modify="+m+"'>廣告rule</a></td></tr>");
        out.println("<tr><td></td><td><a href='./SetAdid?modify="+m+"'>廣告id</a></td></tr>");
        out.println("<tr><td>廣告分析</td><td><a href='./SetAdana?modify="+m+"'>廣告組分析</a></td></tr>");
        out.println("<tr><td></td><td><a href='./SetAdanarule?modify="+m+"'>廣告組rule</a></td></tr>");
        out.println("<tr><td>輪播廣告</td><td><a href='./SetRound?modify="+m+"'>輪播廣告</a></td></tr>");
        out.println("<tr><td>Default廣告</td><td><a href='./SetDefault?modify="+m+"'>Default廣告</a></td></tr>");
        out.println("<tr><td>重要訊息廣告</td><td><a href='./SetImpmsgad?modify="+m+"'>重要訊息廣告</a></td></tr>");
        out.println("<tr><td>webapi</td><td><a href='./SetServer?modify="+m+"'>Server groupno</a></td></tr>");
        out.println("<tr><td></td><td><a href='./SetGroupad?modify="+m+"'>分組廣告對應廣告</a></td></tr>");
        out.println("<tr><td></td><td><a href='./SetAction?modify="+m+"'>動作廣告對應廣告</a></td></tr>");
        out.println("<tr><td></td><td><a href='./SetGrouptype?modify="+m+"'>Group type</a></td></tr>");
        out.println("<tr><td>Member</td><td><a href='./SetMember?modify="+m+"'>Member</a></td></tr>");
        out.println("<tr><td></td><td><a href='./SetPolicy?modify="+m+"'>給廣告type policy</a></td></tr>");
        out.println("</table><p><p><p>");
        out.println("<table><tr><th>SETTING FUNCTION</th></tr>");
        out.println("<tr><td><a href='./VerifySetting?verify="+m+"'>驗證setting設定</a></td></tr>");
        out.println("<tr><td><a href='./SetToolDump?d="+m+"'>dump setting data to check</a></td></tr>");
        out.println("<tr><td><a href='./SettingOnline?date="+m+"&couch=localhost'>setting data to online(couchbase)</a></td></tr>");
        out.println("</table></body></html>");
    }
}
